﻿<%@ Page Language="C#" MasterPageFile="~/Generic.Master" AutoEventWireup="true" CodeBehind="GameGUI.aspx.cs" Inherits="WebInterface.GameGUI" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            height: 342px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<input type="hidden" id="nume_compunere" name="nume_compunere" value="" runat="server" />
<script type="text/javascript">
function disp_prompt()
{
var name=prompt("Nume elem compus","Elem compus");
if (name!=null && name!="")
  {
    document.getElementById("ctl00_ContentPlaceHolder1_nume_compunere").setAttribute("value", name);
    document.getElementById("ctl00_ContentPlaceHolder1_btnCompose").click();
  }
}
</script>

    <table id="TABLE1" style="width: 1000px; border-right: aqua thin groove; border-top: aqua thin groove;
        border-left: aqua thin groove; border-bottom: aqua thin groove;">
        <tr>
            <td align="center" style="border-right: gray thin dotted; border-top: gray thin dotted;
                border-bottom-width: thin; border-bottom-color: gray; border-left: gray thin dotted;
                height: 41px">
                Actiuni:</td>
        <td align="center" style="border-right: gray thin dotted; border-top: gray thin dotted; border-bottom-width: thin; border-bottom-color: gray; border-left: gray thin dotted; height: 41px">
                    Turbinca:</td>
        <td align="center" style="border-right: gray thin dotted; border-top: gray thin dotted; border-bottom-width: thin; border-bottom-color: gray; border-left: gray thin dotted; height: 41px">
                    Taraba mea:</td>
        <td align="center" style="border-right: gray thin dotted; border-top: gray thin dotted; border-bottom-width: thin; border-bottom-color: gray; border-left: gray thin dotted; height: 41px">
                    Piatza:</td>
        <td align="center" style="border-right: gray thin dotted; border-top: gray thin dotted; border-bottom-width: thin; border-bottom-color: gray; border-left: gray thin dotted; height: 41px">
                    Concetateni:</td>
    </tr>
    <tr>
        <td style="border-top-width: thin; border-right: gray thin dotted; border-left: gray thin dotted; border-top-color: gray; border-bottom: gray thin dotted; " 
            class="style1">
            <table style="width:100%;">
                <tr>
                    <td>
                        <asp:Button ID="btnBuyAtom" runat="server" Text="Cumpara atom" Width="200px" 
                            onclick="btnBuyAtom_Click" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnBuyElement" runat="server" Text="Cumpara" Width="200px" 
                            onclick="btnBuyElement_Click" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnSell" runat="server" Text="Vinde" Width="200px" 
                            onclick="btnSell_Click" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnWithdrawElement" runat="server" Text="Retrage" Width="200px" 
                            onclick="btnWithdrawElement_Click" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnCompose" runat="server" Text="Compune" Width="200px" 
                            onclick="btnCompose_Click" />
                        <input type="button" onclick="disp_prompt()" style="width:200px;" value="Compune" />    
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnRefresh" runat="server" Text="Improspateaza" Width="200px" 
                            onclick="btnRefresh_Click" />
                    </td>
                </tr>
            </table>
            <br />
            <br />
        </td>
        <td style="border-right: gray thin dotted; border-left: gray thin dotted; border-bottom: gray thin dotted; " 
            class="style1">
            <asp:CheckBoxList ID="lbInventory" runat="server" 
                DataSourceID="InventoryDatasSource" DataTextField="Name" 
                DataValueField="Guid">
            </asp:CheckBoxList>
        </td>
        <td style="border-top-width: thin; border-right: gray thin dotted; border-left: gray thin dotted; border-top-color: gray; border-bottom: gray thin dotted; " 
            class="style1">
            <asp:CheckBoxList ID="lbOnSale" runat="server" DataSourceID="OnSaleDatasSource" 
                DataTextField="Name" DataValueField="Guid">
            </asp:CheckBoxList>
        </td>
        <td style="border-top-width: thin; border-right: gray thin dotted; border-left: gray thin dotted; border-top-color: gray; border-bottom: gray thin dotted; " 
            class="style1">
            <asp:CheckBoxList ID="lbMarket" runat="server" DataSourceID="MarketProducts" 
                DataTextField="Name" DataValueField="Guid">
            </asp:CheckBoxList>
        </td>
        <td style="border-top-width: thin; border-right: gray thin dotted; border-left: gray thin dotted; border-top-color: gray; border-bottom: gray thin dotted; " 
            class="style1">
            <table>
            
            <asp:Repeater ID="lbPopulation" runat="server" DataSourceID="PopulationSource">
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Eval("Name") %>
                    </td>
                </tr>
            </ItemTemplate>
            </asp:Repeater>
            
            </table>
        </td>
    </tr>
    <tr>
        <td align="center" style="border-top: gray thin dotted; border-left: gray thin dotted; border-bottom: gray thin dotted; height: 41px; border-right-width: thin; border-right-color: gray">
                    <asp:Label ID="lblCredit" runat="server" Text="Label"></asp:Label>
        </td>
        <td colspan="4" style="border-right: gray thin dotted; border-top: gray thin dotted; border-left-width: thin; border-left-color: gray; border-bottom: gray thin dotted">
        </td>
    </tr>
</table>
    <asp:ObjectDataSource ID="InventoryDatasSource" runat="server" 
        SelectMethod="getCurrentUserInventory" TypeName="WebInterface.Accessors">
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="OnSaleDatasSource" runat="server" 
        SelectMethod="getCurrentUserOnSale" TypeName="WebInterface.Accessors">
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="MarketProducts" runat="server" 
        SelectMethod="getMarketProducts" TypeName="WebInterface.Accessors">
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="PopulationSource" runat="server" 
        SelectMethod="getCitizens" TypeName="WebInterface.Accessors">
    </asp:ObjectDataSource>
</asp:Content>
